package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoGalleryDoor;
import com.muyu.danmo.mapper.DanmoGalleryDoorMapper;
import com.muyu.danmo.service.IDanmoGalleryDoorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 画廊门头Service业务层处理
 *
 * @author yangle
 * @date 2024-10-23
 */
@Service
public class DanmoGalleryDoorServiceImpl implements IDanmoGalleryDoorService
{
    @Autowired
    private DanmoGalleryDoorMapper danmoGalleryDoorMapper;

    /**
     * 查询画廊门头
     *
     * @param id 画廊门头主键
     * @return 画廊门头
     */
    @Override
    public DanmoGalleryDoor selectDanmoGalleryDoorById(Long id)
    {
        return danmoGalleryDoorMapper.selectDanmoGalleryDoorById(id);
    }

    /**
     * 查询画廊门头列表
     *
     * @param danmoGalleryDoor 画廊门头
     * @return 画廊门头
     */
    @Override
    public List<DanmoGalleryDoor> selectDanmoGalleryDoorList(DanmoGalleryDoor danmoGalleryDoor)
    {
        return danmoGalleryDoorMapper.selectDanmoGalleryDoorList(danmoGalleryDoor);
    }

    /**
     * 新增画廊门头
     *
     * @param danmoGalleryDoor 画廊门头
     * @return 结果
     */
    @Override
    public int insertDanmoGalleryDoor(DanmoGalleryDoor danmoGalleryDoor)
    {
        return danmoGalleryDoorMapper.insertDanmoGalleryDoor(danmoGalleryDoor);
    }

    /**
     * 修改画廊门头
     *
     * @param danmoGalleryDoor 画廊门头
     * @return 结果
     */
    @Override
    public int updateDanmoGalleryDoor(DanmoGalleryDoor danmoGalleryDoor)
    {
        return danmoGalleryDoorMapper.updateDanmoGalleryDoor(danmoGalleryDoor);
    }

    /**
     * 批量删除画廊门头
     *
     * @param ids 需要删除的画廊门头主键
     * @return 结果
     */
    @Override
    public int deleteDanmoGalleryDoorByIds(Long[] ids)
    {
        return danmoGalleryDoorMapper.deleteDanmoGalleryDoorByIds(ids);
    }

    /**
     * 删除画廊门头信息
     *
     * @param id 画廊门头主键
     * @return 结果
     */
    @Override
    public int deleteDanmoGalleryDoorById(Long id)
    {
        return danmoGalleryDoorMapper.deleteDanmoGalleryDoorById(id);
    }
}
